package com.fengye.user.util;

public class UserContextHolder {

    private static final ThreadLocal<String> userContext = new ThreadLocal<>();

    public static void setUser(String user) {
        userContext.set(user);
    }

    public static String getUser() {
        return userContext.get();
    }

    public static void clear() {
        userContext.remove();
    }
}
